#include #include #include #include using namespace std; //void main() //{ // // srand((unsigned int)time(NULL)); //seed random number generator // // while(true) // { // int dieOne = rand() % 6 + 1; // int dieTwo = rand() % 6 + 1; // int dieTotal = dieOne + dieTwo; // // cout << dieTotal << endl; // // int input = _getch(); // // if(input == 'q') // { // //break - leave the loop now // //break; // //exit - stops the program now // exit(0); // } // while(input != ' ') // { // input = _getch(); // } // // // cout << "Press space to roll again..."; // //_getch() will wait for the user to press a key before continuing // //while(_getch() != ' '); // // //cls is the DOS command for clearing the screen // system("cls"); // // } // // //} //void main() //{ // int i = 0; // // LOOP_START: // cout << i << endl; // i++; // // if(i < 100) // { // goto LOOP_START; // } // // //END: //} void main() { //for loop - counted loops for(int i = 0; i < 100; i = i + 5 ) { cout << i << endl; } }